<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------


use think\facade\Route;

//微信小程序登录
Route::rule('a-wxlogin','api/Auth/wxlogin');
//微信小程序登录检查
Route::rule('a-wxlogin_dl','api/Auth/wxlogin_dl');
//商品列表
Route::rule('g-goodslist','api/Goods/goodslist');
//商品详情
Route::rule('g-getGoodsDetail','api/Goods/getGoodsDetail');

Route::rule('g-getRecommend','api/Goods/getRecommend');

// 首页轮播图
Route::rule('g-getBanner','api/Goods/getBanner');

//公共接口
Route::rule('p-public_config','api/Parameter/public_config');

//上传图片
Route::rule('p-icon','api/Parameter/icon');

//我的个人信息
Route::rule('u-role_config','api/User/role_config');

//修改个人信息
Route::rule('u-user_edit','api/User/user_edit');
//流水记录
Route::rule('u-AccountLogList','api/User/AccountLogList');

//商城兑换商品
Route::rule('o-buy','api/order/buy');
//订单列表
Route::rule('o-lists','api/order/lists');
//订单详情页
Route::rule('o-detail','api/order/detail');
//取消订单
Route::rule('o-order_cancel','api/order/cancel');
//确认收货
Route::rule('o-order_confirm','api/order/confirm');
// 核销订单信息
Route::rule('o-order_write_off','api/order/verification');
// 确认核销订单
Route::rule('o-order_write_off_confirm','api/order/verificationConfirm');

//收货地址列表
Route::rule('ua-lists','api/user_address/lists');
//获取一条地址详情
Route::rule('ua-detail','api/user_address/detail');
//添加收货地址
Route::rule('ua-add','api/user_address/add');
//修改收货地址
Route::rule('ua-update','api/user_address/update');
//删除收货地址
Route::rule('ua-del','api/user_address/del');
//设置默认地址
Route::rule('ua-setDefault','api/user_address/setDefault');

 //问题反馈
 Route::rule('u-feedback','api/User/feedback');


//api模块路由
Route::domain('dggsongsongyouli-api', function () {

     //首页
    Route::rule('i-home','api/index/home');
    Route::rule('data_submit','api/index/data_submit');
    

    //微信小程序登录
    Route::rule('a-wxlogin','api/Auth/wxlogin');
    //微信小程序登录检查
    Route::rule('a-wxlogin_dl','api/Auth/wxlogin_dl');

    //公共接口
    Route::rule('p-public_config','api/Parameter/public_config');
    //上传图片
    Route::rule('p-icon','api/Parameter/icon');
    //文章详情
    Route::rule('p-wz_config','api/Parameter/wz_config');
    //分享
    Route::rule('p-share_config','api/Parameter/share_config');

    //文章列表
    Route::rule('a-lists','api/Article/lists');
    //文章详情
    Route::rule('a-detail','api/Article/detail');
    


    //商品列表
    Route::rule('g-goodslist','api/Goods/goodslist');
    //商品详情
    Route::rule('g-getGoodsDetail','api/Goods/getGoodsDetail');
    //平台推荐
    
    Route::rule('g-getRecommend','api/Goods/getRecommend');
    //购物车数量
    Route::rule('c-cart_num','api/Cart/cart_num');
     //加入购物车
    Route::rule('c-add','api/Cart/add');
    //购物车列表
    Route::rule('c-lists','api/Cart/lists');
    //删除购物车商品
    Route::rule('c-del','api/Cart/del');
    //购物车数量更新
    Route::rule('c-change','api/Cart/change');
    //购物车选中
    Route::rule('c-selected','api/Cart/selected');


    //收货地址列表
    Route::rule('ua-lists','api/user_address/lists');
    //获取一条地址详情
    Route::rule('ua-detail','api/user_address/detail');
    //添加收货地址
    Route::rule('ua-add','api/user_address/add');
    //修改收货地址
    Route::rule('ua-update','api/user_address/update');
    //删除收货地址
    Route::rule('ua-del','api/user_address/del');
    //设置默认地址
    Route::rule('ua-setDefault','api/user_address/setDefault');

    //商城下单
    Route::rule('o-buy','api/order/buy');
    //订单列表
    Route::rule('o-lists','api/order/lists');
    //订单详情页
    Route::rule('o-detail','api/order/detail');
    //取消订单
    Route::rule('o-order_cancel','api/order/cancel');
    //确认收货
    Route::rule('o-order_confirm','api/order/confirm');
    
    
    //订单查看物流
    Route::rule('o-orderTraces','api/order/orderTraces');


    //商品售后
    Route::rule('us-lists','api/AfterSale/lists');
    //申请售后
    Route::rule('us-goodsInfo','api/AfterSale/goodsInfo');
    //添加售后
    Route::rule('us-add','api/AfterSale/add');
    //售后详情
    Route::rule('us-detail','api/AfterSale/detail');
    //重新申请
    Route::rule('us-again','api/AfterSale/again');
    //撤销售后申请
    Route::rule('us-cancel','api/AfterSale/cancel');
    //填写运单号
    Route::rule('us-express','api/AfterSale/express');
    
    
    

    
    

    //预支付
    Route::rule('p-prepay','api/Payment/prepay');
    //支付方式
    Route::rule('p-payway','api/Payment/payway');
    //微信小程序回调
    Route::rule('p-wxnotify','api/Payment/wxnotify');
    
    

    //可领取优惠券
    Route::rule('c-couponlist','api/Coupon/couponlist');
    //我的优惠券
    Route::rule('c-CouponList','api/Coupon/MyCouponLis');;
    //一键领取优惠券
    Route::rule('c-receiveCoupon','api/Coupon/receiveCoupon');
    //下单获取优惠券
    Route::rule('c-orderCoupon','api/Coupon/orderCoupon');
    //我的优惠券
    Route::rule('c-myCoupon','api/Coupon/myCoupon');

    //我的
    Route::rule('u-role_config','api/User/role_config');
    //流水记录
    Route::rule('u-AccountLogList','api/User/AccountLogList');
    //我的粉丝
    Route::rule('u-fans','api/User/fans');
    //分佣概括
    Route::rule('u-distribution_order_info','api/User/distribution_order_info');
    //分佣列表
    Route::rule('u-distribution_order_lists','api/User/distribution_order_lists');
    //问题反馈
    Route::rule('u-feedback','api/User/feedback');
    //申请提现
    Route::rule('u-withdrawapply','api/User/withdrawapply');
    //提现明细
    Route::rule('u-withdrawrecords','api/User/withdrawrecords');

    //等级列表
    Route::rule('ul-lists','api/UserLevel/UserLevellists');
    //购买会员
    Route::rule('ul-buy','api/UserLevel/buy');
    //会员记录
    Route::rule('ul-UserVipLogList','api/UserLevel/UserVipLogList');


    //充值模板
    Route::rule('r-recharge_template','api/Recharge/rechargeTemplate');
    //充值
    Route::rule('r-recharge_buy','api/Recharge/recharge');
    //充值记录
    Route::rule('r-rechargeRecord','api/Recharge/rechargeRecord');
    

    
    

    //miss路由
    Route::miss(function (){
        return json([
            'code' => 404,
            'msg'  => '接口不存在',
            'data' => '',
        ], 404);
    });
});
//Route::alias('region','\yupoxiong\region\RegionController');

return [

];
